package fr.mystnihon.game.activity.view.scene;

import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.util.TypedValue;
import android.widget.GridView;
import android.widget.TextView;
import fr.mystnihon.game.framework.Screen;
import fr.mystnihon.game.framework.impl.AndroidGame;

public class CombatScreen extends Screen {

	Paint paint;
	GridView layout;
	TextView textView;

	public CombatScreen(AndroidGame game) {
		super(game);
		// TODO Auto-generated constructor stub
		paint = new Paint();
		paint.setARGB(255, 255, 255, 255);
		paint.setTextSize(20);
		// layout = new GridView((AndroidGame) game);
		textView = new TextView((AndroidGame) game);
		textView.layout(0, 0, 300, 500); // text box size 300px x 500px
		textView.setTextSize(TypedValue.COMPLEX_UNIT_PX, 30);
		textView.setTextColor(Color.WHITE);
		textView.setShadowLayer(5, 2, 2, Color.CYAN); // text shadow

		textView.setText("THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG");
		textView.setDrawingCacheEnabled(true);
	}

	@Override
	public void update(long deltaTime) {
		// TODO Auto-generated method stub

	}

	@Override
	public void render(Canvas canvas) {

		canvas.drawColor(Color.BLACK);

		canvas.drawBitmap(textView.getDrawingCache(), 0, 0, null);

	}

	@Override
	public void pause() {
		// TODO Auto-generated method stub

	}

	@Override
	public void resume() {
		// TODO Auto-generated method stub

	}

	@Override
	public void dispose() {
		// TODO Auto-generated method stub

	}

	public void loadMonster() {
		// MonsterGroup = game.(take monster of the map)
	}

	public class TurnController {

	}

}
